import API from "@/utils/request";

export function getPageBrand({pageNum,pageSize,name}){
    return API.get('/brands/page',{
        params:{
            pageNum,
            pageSize,
            name
        }
    })
}

// export function getAllCategory(){
//     return API.get('/category')
// }



export function saveBrand(brand){
    return API.post('/brands/add',brand)
}

export function updateBrand(brand){
    return API.post('/brands/update',brand)
}
export function delBatchBrands(arr){
    return API.delete('/brands/delete', {data:arr})
}
export function removeBrand(id){
    return API.delete(`/brands/${id}`)
}